package uit.server.model;

import java.io.Serializable;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

public class LayerDef  implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	
	private String layerName ;
	private String layerId;
	private String visible;
	
	public LayerDef(){
	}
	
	public LayerDef(String layerId){
		this.layerId = layerId;
	}
	
	public String getLayerId() {
		return layerId;
	}
	public void setLayerId(String layerId) {
		this.layerId = layerId;
	}
	public String getLayerName() {
		return layerName;
	}
	public void setLayerName(String layerName) {
		this.layerName = layerName;
	}
	public String getVisible() {
		return visible;
	}
	public void setVisible(String visible) {
		this.visible = visible;
	}
	
	@Override
	public boolean equals(Object obj) {
		
		if (obj instanceof LayerDef == false) {
		     return false;
		   }
		   if (this == obj) {
		     return true;
		   }
		   LayerDef rhs = (LayerDef) obj;

		
		return new EqualsBuilder()
						.append(layerId, rhs.layerId)
						.isEquals();
//		return EqualsBuilder.reflectionEquals(this, obj);

	}
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
	
	
	
}
